package com.jinzecloud.ordersystem.service.impl;

import com.jinzecloud.ordersystem.bean.SpGoods;
import com.jinzecloud.ordersystem.mapper.SpGoodsMapper;
import com.jinzecloud.ordersystem.service.SpGoodsService;
import com.jinzecloud.ordersystem.utils.PageUtils;
import com.jinzecloud.ordersystem.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;



@Service("spGoodsService")
public class SpGoodsServiceImpl extends ServiceImpl<SpGoodsMapper, SpGoods> implements SpGoodsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SpGoods> page = this.page(
                new Query<SpGoods>().getPage(params),
                new QueryWrapper<SpGoods>()
        );

        return new PageUtils(page);
    }

}